Page({
  data:{
    contentType:201,
    page:1,
    pageSize:5,
    title:'',
    content:'',
    created:''
  },
  onLoad(){
this.getMessage()
  },
 async getMessage(){
  const res = await wx.$http.get('/driver/messages/page',{contentType:this.data.contentType,page:this.data.page,pageSize:this.data.pageSize})
  console.log(res.items)
  this.setData({...res.items[0]})
  },
  toDetail(){
    wx.navigateTo({
      url: '/pages/messageDetail/messageDetail',
    })
  }
})